<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-html</title>
</head>
<body>
    <div id="app">
        <p v-html = 'msg'></p>
        <p v-html = 'name'></p>
    </div>
</body>
<script src="../js/vue.js"></script>
<script>
    //		v-html指令:该指令后面往往会跟上一个string类型,会将string的HTML解析出来并且进行渲染
    const app = new Vue({
        el:'#app',
        data:{
            msg:'Helloween',
            name:'<h1>您好</h1>'
        }
    })
</script>
</html>